#ifndef __CDynamicArray_H__
#define __CDynamicArray_H__

#define INITIAL_MAX_SIZE 1000

class CDynamicArray
{
public:
	CDynamicArray(int nInitialMaxSize = INITIAL_MAX_SIZE);
	CDynamicArray(CDynamicArray* cDynamicArray);
	~CDynamicArray(void);

	void copyToArray(const char* source, unsigned int size);


	char* m_cArray;
	int m_nSize;
private:
	void _resize(int nNewSize);

	int m_nFreeSize;
};

#endif
